﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PhotoGallery.Model
{
    public class Comment
    {
        private string cid;
        private string pid;
        private string uid;
        private string sid;
        private string content;
        private string share;
        private string time;
        private string state;

        public Comment() { }

        public Comment(string cid,string pid,string uid,string sid,string content,string share, string time,string state) 
        {
            this.cid = cid;
            this.pid = pid;
            this.uid = uid;
            this.sid = sid;
            this.content = content;
            this.share = share;
            this.time = time;
            this.state = state;
        }

        public string Cid{
            get {return cid;}
        }
        public string Pid { 
            get {return pid;}
        }
        public string Uid {
            get { return uid; }
        }
        public string Sid {
            get { return sid; }
        }
        public string Content {
            get { return content; }
            set { this.content = value; }
        }
        public string Share {
            get { return share; }
            set { this.share = value; }
        }
        public string Time {
            get { return time; }
            set { this.time = value; }
        }
        public string State {
            get { return state; }
            set { this.state = value; }
        }
    }

    public class Commentcllection
    {
        private string uid;
        private string username;
        private string content;
        private string time;

        public Commentcllection(String uid,String username, String content, String time)
        {
            this.uid = uid;
            this.username = username;
            this.content = content;
            this.time = time;
        }

        public string Uid {
            get { return uid; }
            set { this.uid = value; }
        }
        public string Username{
            get { return username; }
            set { this.username = value; }
        }
        public string Content {
            get { return content; }
            set { this.content = value; }
        }
        public string Time {
            get { return time; }
            set { this.time = value; }
        }

    }
}
